<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>角色名称</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<form name="form1" method="post" action="">
<input type="hidden" name="uid"><input type="hidden" name="rid">
</form>
<table border="1">
  <tr>
    <td class="nohover" colspan="5"><input class="buttonadd" type="button" value="增加" onClick="javascript:window.location.href='<%=request.getContextPath()%>/RoleInfo.do?method=toAdd'"></td>
  </tr>
  <tr>
    <th width="113">角色名称</th>
    <th colspan="4" align="center">操作</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${prod.roleInfoName }</td>
    <td width="219">
	    <input class="buttonmodify" type="button" value="修改" name="" onClick="javascript:window.location.href='<%=request.getContextPath()%>/RoleInfo.do?method=toUpdate&rid=${prod.roleInfoId }'"/> &nbsp;
	    <input class="buttondelete" type="button" onClick="javascript:if(confirm('确定删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/RoleInfo.do?method=delete&rid=${prod.roleInfoId}'}" value="删除"  />   
     </td>
    <td width="200">
    <input class="buttonsharepower" type="button" value="分配权限" onclick="javascript:window.location.href='<%=request.getContextPath()%>/RolePowerInfo.do?method=tree&rid=${prod.roleInfoId }'"></td>
    <td width="200">&nbsp;
      <input class="buttonshareuser" type="button" value="查看用户" onClick="javascript:window.location.href='<%=request.getContextPath()%>/RoleInfo.do?method=showUser&rid=${prod.roleInfoId }'"></td>
  </tr>
  </c:forEach>
  <tr>
	    <td class="nohover" colspan="12" align="center">&nbsp;
	    <form name="pageForm" method="post" action="<%=request.getContextPath()%>/RolePowerInfo.do?method=list">
	    <c:out value="${foot}" escapeXml="false"/>
	    </form>
	    </td>
    </tr>
</table>
</body>
</html>
